package com.meixiang.entity.fund;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 每日收益记录
 * Created by xyj on 2016/6/6.
 */
public class FundProfitRecord implements Parcelable {

    private String nav_date;
    private String day_rate;
    private String day_profit;
    private String type;

    public FundProfitRecord() {

    }

    protected FundProfitRecord(Parcel in) {
        nav_date = in.readString();
        day_rate = in.readString();
        day_profit = in.readString();
        type = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(nav_date);
        dest.writeString(day_rate);
        dest.writeString(day_profit);
        dest.writeString(type);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<FundProfitRecord> CREATOR = new Creator<FundProfitRecord>() {
        @Override
        public FundProfitRecord createFromParcel(Parcel in) {
            return new FundProfitRecord(in);
        }

        @Override
        public FundProfitRecord[] newArray(int size) {
            return new FundProfitRecord[size];
        }
    };

    public String getNav_date() {
        return nav_date==null?"":nav_date;
    }

    public void setNav_date(String nav_date) {
        this.nav_date = nav_date;
    }

    public String getDay_rate() {
        return day_rate==null?"":day_rate;
    }

    public void setDay_rate(String day_rate) {
        this.day_rate = day_rate;
    }

    public String getDay_profit() {
        return day_profit==null?"":day_profit;
    }

    public void setDay_profit(String day_profit) {
        this.day_profit = day_profit;
    }

    public String getType() {
        return type==null?"":type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
